package com.csb.service.impl;

import com.csb.mapper.RoleMapper;
import com.csb.mapper.UserMapper;
import com.csb.pojo.Role;
import com.csb.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {
    // 依赖
    @Autowired
    private RoleMapper roleMapper;

    @Override
    public List<Role> findRoleByUserId(String account) {
        List<Role> roleList = roleMapper.findRoleByUserId(account);
        return roleList;
    }
}
